package com.rpj.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.rpj.entity.TeaDto;
import com.rpj.entity.TeaEntity;


public interface TeaService {
	//查询所有
	List<TeaEntity> query();
	//修改
	int updateTea(String teaname,String teapassword,String teadept,String status,String teaborrowbooknum,String teaborrowmaxnum,String teagivebooknum,String data1,String data2,String data3,String teaid);
	//添加
	TeaEntity save(TeaEntity e);
	/**
	 * 多条件分页查询
	 */
	public Page<TeaEntity> queryByCondition(TeaDto dto,Pageable pageable);
	/**
	 * 查询部门
	 */
	List<String> querydept();
	/**
	 * 登陆查询
	 */
	TeaEntity tealogin(String teaname,String teapassword);
}
